package com.fr.web.platform.entry;

import com.fr.base.core.json.JSONException;
import com.fr.base.core.json.JSONObject;
import com.fr.schedule.dao.FieldMapper;
import com.fr.schedule.dao.ObjectMapper;

public class URLEntry extends BaseEntry
{
  private String url = null;
  public static final String TYPE_PREFIX = "3";
  public static final String TABLE_NAME = "fr_urlentry";
  public static final String URL = "url";
  public static final int URLType = 12;
  public static final ObjectMapper OBJECT_MAPPER = new ObjectMapper("fr_urlentry", new FieldMapper[] { new FieldMapper("id", 4, "id"), new FieldMapper("parentId", 4, "parent"), new FieldMapper("displayName", 12, "name"), new FieldMapper("url", 12, "url"), new FieldMapper("description", 12, "description") });

  public String getUrl()
  {
    return this.url;
  }

  public void setUrl(String paramString)
  {
    this.url = paramString;
  }

  public String getTypePrefix()
  {
    return "3";
  }

  public boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof URLEntry))
      return false;
    return super.equals(paramObject);
  }

  public Object clone()
    throws CloneNotSupportedException
  {
    URLEntry localURLEntry = (URLEntry)super.clone();
    return localURLEntry;
  }

  public JSONObject createJSONConfig()
    throws JSONException
  {
    JSONObject localJSONObject = super.createJSONConfig();
    localJSONObject.put("url", getUrl());
    return localJSONObject;
  }

  public void parseJSON(JSONObject paramJSONObject)
    throws JSONException
  {
    super.parseJSON(paramJSONObject);
    setUrl(paramJSONObject.getString("url"));
  }
}